@extends('backend.template.bootstrap')
@section('content')
<div class="m-b-md">
	<h3 class="m-b-none">修改密码</h3>
</div>
@if (Session::has('msg'))
<div class="alert alert-dismissable alert-danger">
	<button type="button" class="close" data-dismiss="alert">×</button>
	<strong>消息提示：</strong> {{ Session::get('msg') }}
</div>
@elseif ($errors->any())
<div class="alert alert-danger" role="alert">
	<button type="button" class="close" data-dismiss="alert">×</button>
	<strong>消息提示：</strong> {{ $errors->first() }}
</div>
@endif
<section class="panel panel-default" >
	<header class="panel-heading font-bold">
		修改密码
	</header>
	<div class="panel-body">
		{!! Form::open(array('url' => '/backend/password/reset', 'class' => 'form-horizontal')) !!}
			<div class="form-group">
				{!! Form::label('oPassword', '旧密码', array('class' => 'col-sm-1 control-label')) !!}
				<div class="col-sm-10">
					{!! Form::password('oPassword', array('class' => 'form-control')) !!}
				</div>
	  		</div>
			<div class="form-group">
				{!! Form::label('password', '新密码', array('class' => 'col-sm-1 control-label'))!!}
				<div class="col-sm-10">
					{!! Form::password('password', array('class' => 'form-control')) !!}
				</div>
	  		</div>
			<div class="form-group">
				{!! Form::label('password2', '确认密码', array('class' => 'col-sm-1 control-label')) !!}
				<div class="col-sm-10">
					{!! Form::password('password2', array('class' => 'form-control')) !!}
				</div>
	  		</div>
	  		<div class="form-group">
	  			<div class="col-sm-offset-1 col-sm-5">
	  				<button type="submit" class="btn btn-primary btn-submit">
	  					立即保存
	  				</button>
	  			</div>
	  		</div>
	  	{!! Form::close() !!}
	</div>
</section>
@endsection